home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / CTFASMTT.ZIP / LESSON10.DOC < prev    next >
Text File  |  1994-10-30  |  2KB  |  62 lines

  1. LESSON10 - PORTS, TIPS, SUMMERY
  2.  
  3. the way of the computer to communicate with it's cards is through the 
  4. ports, lets say the screen data port is 3dah and the keyboard port
  5. is 60h,64h
  6.  
  7. IN al,port  ; al recieves the value in port
  8. OUT port,al ; port recieves the value in al
  9.  
  10. basic listing of ports (can't get it on a list) :
  11.  
  12. 0-7   : dma base ports
  13. 20h   : pic, interrupt aknowlege
  14. 21h   : interrupt masking port
  15. 40h   : timer port
  16. 43h   : timer init port
  17. 60h   : keyboard keys port
  18. 64h   : keyboard control port
  19. 3c8h  : screen pal port
  20. 3dah  : screen data port
  21.  
  22. and there are more, non significent or that I don't know (and there a lot)
  23.  
  24. TIPS :
  25.  
  26. - never use a source that don't know what it does.
  27. - take sources and learn them.
  28. - learn to use any debug program.
  29. - assembly is a language that every mistake can be important and the computer 
  30.   may hang, so don't give up.
  31. - use qemm is traps errors that you won't know .
  32. - get an interrupt list (very very important).
  33. - don't be a lamer.
  34.  
  35. SUMMARY :
  36.  
  37. you have learned in those quick 10 lessons, to code in assembly - this
  38. is realy the basic, currenly you can't do much but the hard work
  39. is behind you.
  40. now you will just have to learn the technics (no shortage of those)
  41. and maybe some day you will right a better guide than this.
  42.  
  43. good programing to you all.
  44.  
  45. reminder  : don't be one of those lamers that uses lots of units/lib and
  46.             say you are a good programmer, do it yourself that's the
  47.             trick.
  48.  
  49. if you want to contact me, then you realy can't cause I don't have
  50. means of contact and you wont get my phone (+972-Megadeath)
  51. maybe try to contact one of CTF members and he will contact me.
  52.  
  53. GREETINGS OUT TO :
  54.  
  55.                    True color  - keep drawing those c00l Vga's
  56.                    13Titan     - When will your bbs be open
  57.                    Lord Psonic - Keep going...
  58.                    Wise man    - Learn assembly
  59.                    Salt man    - Continue to do those amazing intro's
  60.                    Whisper     - Tnx for the help
  61.                    Programmers - Who releases their sources and
  62.                                  made be what I am.